oracle.pg.common

## Interface ProgressListener

- All Known Subinterfaces:
    DataLoaderListener
  All Known Implementing Classes:
    SimpleLogBasedDataLoaderListenerImpl, SimpleLogBasedProgressListenerImpl

      public interface ProgressListener

  This interface defines a few core APIs to that can be used to report progress of a long running process (data importing or exporting for example).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `progressTo(long progress, String mesg)` This method reports the current progress.
    `long` | `reportProgressFrequency()` Returns a positive integer as the frequency of progress reporting.

- - ### Method Detail

    - #### progressTo

          void progressTo(long progress,
                        String mesg)

      This method reports the current progress.
      Parameters:
        `progress` - a long value indicating the current progress. It must be a positive integer.
        `mesg` - an optional string value describing the current progress.

    - #### reportProgressFrequency

          long reportProgressFrequency()

      Returns a positive integer as the frequency of progress reporting.
      Returns:
        progress reporting frequency which must be a positive integer.

Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.